package ch.ti.bfh.app.loodel.web.model;

import ch.ti.bfh.app.loodel.service.vote.AllMembersTimeSlotVotesData;
import ch.ti.bfh.app.loodel.service.vote.LearningEventVoteData;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Component
@Scope("view")
public class LearningEventAdminModel {

    private String learningEventId;

    private LearningEventVoteData learningEventVoteData;

    private List<AllMembersTimeSlotVotesData> allMembersTimeSlotVotesDatas;

    private AllMembersTimeSlotVotesData selectedTimeSlotData;

    private Map<AllMembersTimeSlotVotesData, Boolean> acceptedTimeSlots = new HashMap<AllMembersTimeSlotVotesData, Boolean>();

    public Map<AllMembersTimeSlotVotesData, Boolean> getAcceptedTimeSlots() {
        return acceptedTimeSlots;
    }

    public List<AllMembersTimeSlotVotesData> getAllMembersTimeSlotVotesDatas() {
        return allMembersTimeSlotVotesDatas;
    }

    public void setAllMembersTimeSlotVotesDatas(List<AllMembersTimeSlotVotesData> allMembersTimeSlotVotesDatas) {
        this.allMembersTimeSlotVotesDatas = allMembersTimeSlotVotesDatas;
    }

    public String getLearningEventId() {
        return learningEventId;
    }

    public void setLearningEventId(String learningEventId) {
        this.learningEventId = learningEventId;
    }

    public LearningEventVoteData getLearningEventVoteData() {
        return learningEventVoteData;
    }

    public void setLearningEventVoteData(LearningEventVoteData learningEventVoteData) {
        this.learningEventVoteData = learningEventVoteData;
    }

    public AllMembersTimeSlotVotesData getSelectedTimeSlotData() {
        return selectedTimeSlotData;
    }

    public void setSelectedTimeSlotData(AllMembersTimeSlotVotesData selectedTimeSlotData) {
        this.selectedTimeSlotData = selectedTimeSlotData;
    }
}
